Get Started with Node.js

Here is a quick step by step instructions to get your Node.js GUI project started in seconds:

! IMPORTANT ! This module may NOT be installed globally by npm using -g option. It should be installed locally within each project where it is used. Global installation will not work.

  1. Meet the minimum requirements

  2. Create a new directory for the new project

  3. Using terminal of your choice navigate to your project directory and run: npm init

  4. Install swing-ui module to your project: npm install swing-ui

  5. Run the project by running a script in project-path/node_modules/swing-ui directory (pick one for your OS):

    • On Windows: run.win.node.bat
    • On Linux: run.linux.node.sh
    • On Mac: (will be available soon)

    The script will check the version of Java to use and start the Java UI application in this module. The UI application will seamlessly start Node.js with your project.

  6. Once the Java's GUI app starts, it will guide you to the end and will add required things to package.json file. It can even create a simple demo app.

LINUX NOTE: On Linux first make that .sh script executable before trying to execute the script

All Done!

Now in yours project directory you should have your main .js file, package.json, and node_modules folder.

Your license will be store in your package.json file once the GUI app validates and saves it.

Start Coding Faster

Now that you are ready to start coding, check out this Coding Style tutorial to quickly learn most important thing to know before you start. By learning it now you will be able to jump start your project with much more confidence and you wont have to come back when you get stuck.

Contact Us

If something doesn't go as described, please Contact Us to report any difficulties. We will try to address them as soon as possible.